<?php session_start();?>
<!DOCTYPE HTML/>
<html>
	<meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
	<head>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
		<?php include "include.php"?>
	</head>
	<body onload="apply();">
		<div class="container">
			<?php include "header.php"; include "connect.php"; ?>
			<div class="text-center">
				<h1>Setting</h1>
				자신의 개인 정보를 수정할 수 있습니다.
			</div>
			<form class="form-large" onsubmit="return check(this);">
			    <table class="table">
					<tr>
						<td><div><strong>ID</strong></div></td>
						<td><div><? echo $_SESSION['id']; ?></div></td>
					</tr>
					<tr>
						<td><div><strong>New Passward</strong></div></td>
						<td><div><input type="text" class="form-control" name="pw"/></div></td>
					</tr>
					<tr>
						<td><div><strong>Re-enter New Passward</strong></div></td>
						<td><div><input type="text" class="form-control" name="rpw"/></div></td>
					</tr>
					<tr>
						<td><div><strong>Nickname</strong></div></td>
						<td><div><input type="text" class="form-control" name="nick" value="<? echo $_SESSION['nick']; ?>"/></div></td>
					</tr>
					<tr>
						<td><strong>College</strong></td>
						<td><select class="form-control" id="college" onchange="apply();">
							<option value='법과대학'>법과대학</option>
							<option value='경영대학'>경영대학</option>
							<option value='문과대학'>문과대학</option>
							<option value='생명과학대학'>생명과학대학</option>
							<option value='정경대학'>정경대학</option>
							<option value='이과대학'>이과대학</option>
							<option value='공과대학'>공과대학</option>
							<option value='의과대학'>의과대학</option>
							<option value='사범대학'>사범대학</option>
							<option value='간호대학'>간호대학</option>
							<option value='정보통신대학' selected>정보통신대학</option>
							<option value='보건과학대학'>보건과학대학</option>
							<option value='디자인조형학부'>디자인조형학부</option>
							<option value='국제학부'>국제학부</option>
							<option value='미디어학부'>미디어학부</option>
							<option value='정보보호학부'>정보보호학부</option>
							</select></td>
					</tr>
					<tr>
						<td><strong>Department</strong></td>
						<td><select class="form-control" id="dept"><option value=''>먼저 단과대를 선택해주세요</option></select></td>
					</tr>
				</table>
				<input type="submit" class="btn btn-inverse pull-right" value="Save"/>
			</form>
		</div>
		<script src="js/select.js"></script>
		<script src="js/check.js"></script>
	</body>
</html>